<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>北欧风格简约台灯 - SocialMart</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #4f46e5;
            --primary-light: #e0e7ff;
            --secondary: #ec4899;
            --secondary-light: #fee2e2;
            --dark: #1e293b;
            --light: #f8fafc;
            --gray: #64748b;
            --light-gray: #e2e8f0;
            --border-color: #cbd5e1;
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f5f7fa;
            color: var(--dark);
            line-height: 1.6;
        }
        
        /* 导航栏样式 */
        .navbar {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .search-container {
            position: relative;
            max-width: 600px;
            width: 100%;
        }
        
        .search-input {
            width: 100%;
            padding: 0.75rem 1rem 0.75rem 2.5rem;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 0.95rem;
            transition: all 0.2s;
        }
        
        .search-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-light);
        }
        
        .search-icon {
            position: absolute;
            left: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray);
        }
        
        .nav-link {
            color: var(--dark);
            font-weight: 500;
            margin-left: 1rem;
            transition: color 0.2s;
        }
        
        .nav-link:hover, .nav-link.active {
            color: var(--primary);
        }
        
        .avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            object-fit: cover;
            cursor: pointer;
        }
        
        /* 主内容区 */
        .main-container {
            margin-top: 2rem;
            margin-bottom: 3rem;
        }
        
        /* 商品图片区 */
        .product-images {
            margin-bottom: 2rem;
        }
        
        .main-image-container {
            border-radius: 16px;
            overflow: hidden;
            background-color: #f8fafc;
            margin-bottom: 1rem;
            position: relative;
            aspect-ratio: 1/1;
        }
        
        .main-product-image {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform 0.3s ease;
        }
        
        .main-image-container:hover .main-product-image {
            transform: scale(1.02);
        }
        
        .thumbnail-container {
            display: flex;
            gap: 0.75rem;
            overflow-x: auto;
            padding-bottom: 0.5rem;
        }
        
        .thumbnail-item {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            overflow: hidden;
            cursor: pointer;
            flex-shrink: 0;
            border: 2px solid transparent;
            transition: all 0.2s;
        }
        
        .thumbnail-item.active {
            border-color: var(--primary);
        }
        
        .thumbnail-item:hover {
            border-color: var(--primary-light);
        }
        
        .thumbnail-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* 商品信息区 */
        .product-info-section {
            background-color: white;
            border-radius: 16px;
            padding: 1.5rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            margin-bottom: 2rem;
        }
        
        .product-badge {
            display: inline-block;
            background-color: var(--secondary);
            color: white;
            font-size: 0.8rem;
            padding: 0.25rem 0.75rem;
            border-radius: 4px;
            font-weight: 500;
            margin-bottom: 1rem;
        }
        
        .product-title {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 1rem;
            line-height: 1.3;
        }
        
        .product-rating {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1.25rem;
        }
        
        .product-rating-stars {
            color: #f59e0b;
            font-size: 1.1rem;
        }
        
        .rating-count {
            color: var(--gray);
            font-size: 0.95rem;
        }
        
        .rating-count a {
            color: var(--primary);
            text-decoration: none;
        }
        
        .product-price {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .original-price {
            font-size: 1.1rem;
            color: var(--gray);
            text-decoration: line-through;
            font-weight: 400;
        }
        
        .product-description {
            color: var(--gray);
            margin-bottom: 1.5rem;
            line-height: 1.7;
        }
        
        .product-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--gray);
            font-size: 0.95rem;
        }
        
        .meta-item i {
            color: var(--primary);
        }
        
        .product-actions {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }
        
        .action-btn {
            padding: 0.85rem 1.5rem;
            border-radius: 8px;
            font-weight: 500;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            border: none;
        }
        
        .primary-btn {
            background-color: var(--primary);
            color: white;
            flex: 1;
            min-width: 200px;
            justify-content: center;
        }
        
        .primary-btn:hover {
            background-color: #4338ca;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
        }
        
        .secondary-btn {
            background-color: white;
            border: 1px solid var(--border-color);
            color: var(--dark);
            min-width: 60px;
            justify-content: center;
        }
        
        .secondary-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
            background-color: var(--primary-light);
        }
        
        .seller-info {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding-top: 1rem;
            border-top: 1px solid var(--light-gray);
        }
        
        .seller-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .seller-details {
            flex: 1;
        }
        
        .seller-name {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }
        
        .seller-rating {
            font-size: 0.85rem;
            color: var(--gray);
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .contact-seller {
            color: var(--primary);
            font-weight: 500;
            text-decoration: none;
            font-size: 0.95rem;
        }
        
        .contact-seller:hover {
            text-decoration: underline;
        }
        
        /* 商品详情标签页 */
        .product-tabs {
            background-color: white;
            border-radius: 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            overflow: hidden;
            margin-bottom: 2rem;
        }
        
        .nav-tabs {
            border-bottom: 1px solid var(--light-gray);
            margin-bottom: 0;
        }
        
        .nav-tabs .nav-item {
            margin-bottom: 0;
        }
        
        .nav-tabs .nav-link {
            color: var(--gray);
            font-weight: 500;
            padding: 1.25rem 1.5rem;
            border: none;
            border-bottom: 3px solid transparent;
            border-radius: 0;
            margin-bottom: -1px;
        }
        
        .nav-tabs .nav-link.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
            background-color: transparent;
        }
        
        .nav-tabs .nav-link:hover {
            color: var(--primary);
            border-bottom-color: var(--primary-light);
            background-color: transparent;
        }
        
        .tab-content {
            padding: 2rem;
        }
        
        .detail-section {
            margin-bottom: 2.5rem;
        }
        
        .detail-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--dark);
        }
        
        .detail-content {
            color: var(--gray);
            line-height: 1.8;
        }
        
        .detail-content p {
            margin-bottom: 1rem;
        }
        
        .detail-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .detail-gallery img {
            width: 100%;
            border-radius: 8px;
            height: 200px;
            object-fit: cover;
        }
        
        .specification-table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .specification-table tr {
            border-bottom: 1px solid var(--light-gray);
        }
        
        .specification-table td {
            padding: 0.75rem 1rem;
        }
        
        .specification-table td:first-child {
            width: 30%;
            font-weight: 500;
        }
        
        /* 评论区 */
        .reviews-section {
            background-color: white;
            border-radius: 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            padding: 2rem;
            margin-bottom: 2rem;
        }
        
        .reviews-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            gap: 1.5rem;
        }
        
        .reviews-title {
            font-size: 1.5rem;
            font-weight: 600;
        }
        
        .reviews-summary {
            display: flex;
            align-items: center;
            gap: 2rem;
        }
        
        .overall-rating {
            text-align: center;
        }
        
        .rating-value {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0.25rem;
        }
        
        .rating-stars {
            color: #f59e0b;
            margin-bottom: 0.5rem;
        }
        
        .rating-count {
            color: var(--gray);
            font-size: 0.9rem;
        }
        
        .rating-distribution {
            flex: 1;
            min-width: 250px;
        }
        
        .rating-bar {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.5rem;
        }
        
        .rating-label {
            width: 40px;
            font-size: 0.9rem;
        }
        
        .progress-container {
            flex: 1;
            height: 8px;
            background-color: var(--light-gray);
            border-radius: 4px;
            overflow: hidden;
        }
        
        .progress-bar {
            height: 100%;
            background-color: #f59e0b;
        }
        
        .rating-percentage {
            width: 40px;
            text-align: right;
            font-size: 0.9rem;
            color: var(--gray);
        }
        
        .review-form {
            margin-bottom: 2.5rem;
            padding: 1.5rem;
            background-color: var(--light);
            border-radius: 12px;
        }
        
        .review-form-title {
            font-weight: 600;
            margin-bottom: 1rem;
        }
        
        .review-form-stars {
            display: flex;
            gap: 0.25rem;
            margin-bottom: 1rem;
            font-size: 1.5rem;
            color: #d1d5db;
        }
        
        .review-form-stars .star {
            cursor: pointer;
            transition: color 0.2s;
        }
        
        .review-form-stars .star:hover,
        .review-form-stars .star.active {
            color: #f59e0b;
        }
        
        .review-textarea {
            width: 100%;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 1rem;
            min-height: 120px;
            resize: vertical;
            margin-bottom: 1rem;
            font-family: inherit;
        }
        
        .review-textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-light);
        }
        
        .review-actions {
            display: flex;
            justify-content: flex-end;
        }
        
        .submit-review {
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 0.75rem 1.5rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .submit-review:hover {
            background-color: #4338ca;
        }
        
        .reviews-list {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .review-item {
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .review-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1rem;
        }
        
        .reviewer-info {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .reviewer-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .reviewer-name {
            font-weight: 500;
        }
        
        .review-date {
            color: var(--gray);
            font-size: 0.85rem;
        }
        
        .review-stars {
            color: #f59e0b;
        }
        
        .review-content {
            margin-bottom: 1rem;
            line-height: 1.7;
        }
        
        .review-images {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
        
        .review-image {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            object-fit: cover;
        }
        
        .review-actions {
            display: flex;
            gap: 1.5rem;
            font-size: 0.9rem;
        }
        
        .review-action {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            color: var(--gray);
            cursor: pointer;
            transition: color 0.2s;
        }
        
        .review-action:hover {
            color: var(--primary);
        }
        
        .review-action.liked {
            color: var(--secondary);
        }
        
        /* 回复区 */
        .replies-section {
            margin-left: 2rem;
            margin-top: 1rem;
            border-left: 2px solid var(--light-gray);
            padding-left: 1.5rem;
        }
        
        .reply-item {
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .reply-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }
        
        .reply-content {
            margin-bottom: 0.5rem;
            font-size: 0.95rem;
        }
        
        .reply-actions {
            display: flex;
            gap: 1.5rem;
            font-size: 0.85rem;
        }
        
        .reply-form {
            margin-top: 1rem;
            display: flex;
            gap: 0.75rem;
        }
        
        .reply-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .reply-input-container {
            flex: 1;
        }
        
        .reply-input {
            width: 100%;
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 0.75rem 1rem;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }
        
        .reply-input:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .reply-form-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.75rem;
        }
        
        .cancel-reply {
            color: var(--gray);
            background: none;
            border: none;
            font-size: 0.9rem;
            cursor: pointer;
        }
        
        .submit-reply {
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 6px;
            padding: 0.4rem 1rem;
            font-size: 0.9rem;
            cursor: pointer;
        }
        
        /* 相关推荐 */
        .related-products {
            margin-bottom: 3rem;
        }
        
        .section-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
        }
        
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 1.5rem;
        }
        
        .product-card {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .product-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
            text-decoration: none;
        }
        
        .product-image-container {
            position: relative;
            width: 100%;
            height: 160px;
            background-color: #f1f5f9;
        }
        
        .product-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .product-card-info {
            padding: 1rem;
        }
        
        .product-card-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--dark);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            height: 40px;
            font-size: 0.95rem;
        }
        
        .product-card-price {
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 0.5rem;
            font-size: 1rem;
        }
        
        .product-card-rating {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.85rem;
        }
        
        .product-card-rating-stars {
            color: #f59e0b;
        }
        
        .product-card-rating-count {
            color: var(--gray);
            font-size: 0.8rem;
        }
        
        /* 分页 */
        .pagination-container {
            display: flex;
            justify-content: center;
            margin-top: 2rem;
        }
        
        .pagination {
            display: flex;
            gap: 0.5rem;
        }
        
        .page-btn {
            width: 36px;
            height: 36px;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .page-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .page-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .page-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .product-actions {
                flex-direction: column;
            }
            
            .primary-btn, .secondary-btn {
                width: 100%;
                min-width: auto;
            }
            
            .reviews-summary {
                flex-direction: column;
                align-items: flex-start;
                gap: 1.5rem;
            }
        }
        
        @media (max-width: 768px) {
            .search-container {
                max-width: 100%;
                margin: 0.75rem 0;
            }
            
            .nav-tabs .nav-link {
                padding: 0.75rem 1rem;
                font-size: 0.9rem;
            }
            
            .tab-content {
                padding: 1.5rem;
            }
            
            .product-title {
                font-size: 1.5rem;
            }
            
            .product-price {
                font-size: 1.75rem;
            }
            
            .seller-info {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .contact-seller {
                align-self: flex-start;
            }
        }
        
        @media (max-width: 576px) {
            .thumbnail-item {
                width: 60px;
                height: 60px;
            }
            
            .product-meta {
                gap: 1rem;
            }
            
            .meta-item {
                flex-basis: 45%;
            }
            
            .reviews-section {
                padding: 1.5rem 1rem;
            }
            
            .section-title {
                font-size: 1.25rem;
            }
            
            .products-grid {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            }
            
            .product-image-container {
                height: 120px;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg py-3 px-4">
        <div class="container">
            <a href="#" class="logo">
                <i class="fas fa-shopping-bag"></i>
                SocialMart
            </a>
            
            <div class="search-container mx-3">
                <i class="fas fa-search search-icon"></i>
                <input type="text" class="search-input" placeholder="搜索商品、品牌或用户...">
            </div>
            
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto align-items-center">
                    <li class="nav-item">
                        <a class="nav-link" href="#">
                            <i class="fas fa-home me-1"></i>首页
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">
                            <i class="fas fa-th-list me-1"></i>商品列表
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">
                            <i class="fas fa-bell me-1"></i>通知
                        </a>
                    </li>
                    <li class="nav-item ms-2">
                        <img src="https://picsum.photos/100/100?random=1" alt="用户头像" class="avatar">
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    
    <!-- 主内容区 -->
    <div class="container main-container">
        <!-- 商品展示区 -->
        <div class="row">
            <!-- 商品图片 -->
            <div class="col-lg-6">
                <div class="product-images">
                    <div class="main-image-container">
                        <img src="https://picsum.photos/800/800?random=10" alt="北欧风格简约台灯" class="main-product-image" id="mainImage">
                    </div>
                    
                    <div class="thumbnail-container">
                        <div class="thumbnail-item active">
                            <img src="https://picsum.photos/800/800?random=10" alt="商品图片1" class="thumbnail-image" data-img="https://picsum.photos/800/800?random=10">
                        </div>
                        <div class="thumbnail-item">
                            <img src="https://picsum.photos/800/800?random=11" alt="商品图片2" class="thumbnail-image" data-img="https://picsum.photos/800/800?random=11">
                        </div>
                        <div class="thumbnail-item">
                            <img src="https://picsum.photos/800/800?random=12" alt="商品图片3" class="thumbnail-image" data-img="https://picsum.photos/800/800?random=12">
                        </div>
                        <div class="thumbnail-item">
                            <img src="https://picsum.photos/800/800?random=13" alt="商品图片4" class="thumbnail-image" data-img="https://picsum.photos/800/800?random=13">
                        </div>
                        <div class="thumbnail-item">
                            <img src="https://picsum.photos/800/800?random=14" alt="商品图片5" class="thumbnail-image" data-img="https://picsum.photos/800/800?random=14">
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 商品信息 -->
            <div class="col-lg-6">
                <div class="product-info-section">
                    <span class="product-badge">热销</span>
                    
                    <h1 class="product-title">北欧风格简约台灯 卧室床头灯创意现代简约温馨浪漫调光灯具</h1>
                    
                    <div class="product-rating">
                        <div class="product-rating-stars">
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star-half-alt"></i>
                        </div>
                        <span class="rating-count">4.7 (128 评价) | <a href="#reviews">查看全部评价</a></span>
                    </div>
                    
                    <div class="product-price">
                        ¥129.00
                        <span class="original-price">¥199.00</span>
                    </div>
                    
                    <p class="product-description">
                        北欧风格简约台灯，采用高品质ABS材质，环保节能LED光源，可调节亮度，适合卧室、客厅、书房等多种场景使用，为您的家居增添温馨氛围。
                    </p>
                    
                    <div class="product-meta">
                        <div class="meta-item">
                            <i class="fas fa-eye"></i>
                            <span>2.4k 浏览</span>
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-shopping-cart"></i>
                            <span>328 已售</span>
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-comment"></i>
                            <span>136 评论</span>
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-map-marker-alt"></i>
                            <span>上海 发货</span>
                        </div>
                    </div>
                    
                    <div class="product-actions">
                        <button class="action-btn primary-btn">
                            <i class="fas fa-shopping-cart"></i>
                            加入购物车
                        </button>
                        <button class="action-btn primary-btn">
                            <i class="fas fa-tag"></i>
                            立即购买
                        </button>
                        <button class="action-btn secondary-btn like-btn">
                            <i class="far fa-heart"></i>
                        </button>
                        <button class="action-btn secondary-btn save-btn">
                            <i class="far fa-bookmark"></i>
                        </button>
                        <button class="action-btn secondary-btn share-btn">
                            <i class="fas fa-share-alt"></i>
                        </button>
                    </div>
                    
                    <div class="seller-info">
                        <img src="https://picsum.photos/100/100?random=20" alt="卖家头像" class="seller-avatar">
                        <div class="seller-details">
                            <div class="seller-name">创意家居坊</div>
                            <div class="seller-rating">
                                <i class="fas fa-star" style="color: #f59e0b;"></i>
                                <span>4.9 (1.2k 评价)</span>
                            </div>
                        </div>
                        <a href="#" class="contact-seller">联系卖家</a>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 商品详情标签页 -->
        <div class="product-tabs">
            <ul class="nav nav-tabs" id="productTabs" role="tablist">
                <li class="nav-item" role="presentation">
                    <button class="nav-link active" id="description-tab" data-bs-toggle="tab" data-bs-target="#description" type="button" role="tab" aria-controls="description" aria-selected="true">商品详情</button>
                </li>
                <li class="nav-item" role="presentation">
                    <button class="nav-link" id="specifications-tab" data-bs-toggle="tab" data-bs-target="#specifications" type="button" role="tab" aria-controls="specifications" aria-selected="false">规格参数</button>
                </li>
                <li class="nav-item" role="presentation">
                    <button class="nav-link" id="shipping-tab" data-bs-toggle="tab" data-bs-target="#shipping" type="button" role="tab" aria-controls="shipping" aria-selected="false">配送信息</button>
                </li>
                <li class="nav-item" role="presentation">
                    <button class="nav-link" id="reviews-tab" data-bs-toggle="tab" data-bs-target="#reviews" type="button" role="tab" aria-controls="reviews" aria-selected="false">用户评价</button>
                </li>
            </ul>
            
            <div class="tab-content" id="productTabsContent">
                <!-- 商品详情 -->
                <div class="tab-pane fade show active" id="description" role="tabpanel" aria-labelledby="description-tab">
                    <div class="detail-section">
                        <h3 class="detail-title">产品介绍</h3>
                        <div class="detail-content">
                            <p>北欧风格简约台灯，设计简洁大方，融入现代家居风格，为您的生活空间增添温馨舒适的氛围。</p>
                            <p>采用高品质ABS材质制作，坚固耐用，表面光滑细腻，手感舒适。环保节能LED光源，光线柔和不刺眼，保护您的视力。</p>
                            <p>支持多级亮度调节，满足您在不同场景下的照明需求。无论是卧室床头阅读、客厅氛围营造还是书房工作学习，都是理想的选择。</p>
                        </div>
                        <div class="detail-gallery">
                            <img src="https://picsum.photos/600/400?random=20" alt="产品细节图1">
                            <img src="https://picsum.photos/600/400?random=21" alt="产品细节图2">
                            <img src="https://picsum.photos/600/400?random=22" alt="产品细节图3">
                            <img src="https://picsum.photos/600/400?random=23" alt="产品细节图4">
                        </div>
                    </div>
                    
                    <div class="detail-section">
                        <h3 class="detail-title">产品特点</h3>
                        <div class="detail-content">
                            <p>1. 北欧简约风格设计，时尚百搭，适合各种家居装饰风格</p>
                            <p>2. 高品质ABS材质，环保健康，耐用不易损坏</p>
                            <p>3. 节能LED光源，亮度可调节，光线柔和不刺眼</p>
                            <p>4. 底座稳固，不易倾倒，使用安全放心</p>
                            <p>5. 即插即用，操作简单方便，无需复杂安装</p>
                        </div>
                    </div>
                    
                    <div class="detail-section">
                        <h3 class="detail-title">使用场景</h3>
                        <div class="detail-content">
                            <p>卧室床头、客厅沙发旁、书房书桌、酒店客房、咖啡馆等多种场景均可使用，为您营造舒适温馨的照明环境。</p>
                        </div>
                        <div class="detail-gallery">
                            <img src="https://picsum.photos/600/400?random=30" alt="使用场景图1">
                            <img src="https://picsum.photos/600/400?random=31" alt="使用场景图2">
                            <img src="https://picsum.photos/600/400?random=32" alt="使用场景图3">
                        </div>
                    </div>
                </div>
                
                <!-- 规格参数 -->
                <div class="tab-pane fade" id="specifications" role="tabpanel" aria-labelledby="specifications-tab">
                    <div class="detail-section">
                        <h3 class="detail-title">基本参数</h3>
                        <table class="specification-table">
                            <tr>
                                <td>产品名称</td>
                                <td>北欧风格简约台灯</td>
                            </tr>
                            <tr>
                                <td>产品材质</td>
                                <td>ABS+五金</td>
                            </tr>
                            <tr>
                                <td>产品颜色</td>
                                <td>白色、黑色、灰色、粉色</td>
                            </tr>
                            <tr>
                                <td>产品尺寸</td>
                                <td>15cm × 15cm × 42cm</td>
                            </tr>
                            <tr>
                                <td>产品重量</td>
                                <td>约800g</td>
                            </tr>
                            <tr>
                                <td>光源类型</td>
                                <td>LED</td>
                            </tr>
                            <tr>
                                <td>功率</td>
                                <td>5W</td>
                            </tr>
                            <tr>
                                <td>电压</td>
                                <td>220V</td>
                            </tr>
                            <tr>
                                <td>亮度调节</td>
                                <td>支持3档调光</td>
                            </tr>
                            <tr>
                                <td>开关方式</td>
                                <td>触摸式</td>
                            </tr>
                            <tr>
                                <td>电源线长度</td>
                                <td>1.5米</td>
                            </tr>
                            <tr>
                                <td>质保期限</td>
                                <td>1年</td>
                            </tr>
                        </table>
                    </div>
                </div>
                
                <!-- 配送信息 -->
                <div class="tab-pane fade" id="shipping" role="tabpanel" aria-labelledby="shipping-tab">
                    <div class="detail-section">
                        <h3 class="detail-title">配送说明</h3>
                        <div class="detail-content">
                            <p>1. 发货时间：下单后48小时内发货，节假日顺延</p>
                            <p>2. 配送方式：默认圆通快递，如需其他快递请联系客服</p>
                            <p>3. 配送范围：全国大陆地区均可配送，港澳台及海外地区暂不支持</p>
                            <p>4. 配送时间：一般情况下，一线城市1-2天，二线城市2-3天，偏远地区5-7天</p>
                        </div>
                    </div>
                    
                    <div class="detail-section">
                        <h3 class="detail-title">运费说明</h3>
                        <div class="detail-content">
                            <p>1. 订单金额满99元免运费</p>
                            <p>2. 订单金额不满99元，运费10元</p>
                            <p>3. 新疆、西藏、青海等偏远地区运费20元，满199元免运费</p>
                        </div>
                    </div>
                    
                    <div class="detail-section">
                        <h3 class="detail-title">退换货政策</h3>
                        <div class="detail-content">
                            <p>1. 支持7天无理由退换货（商品未使用、包装完好）</p>
                            <p>2. 质量问题由卖家承担来回运费</p>
                            <p>3. 非质量问题退换货，由买家承担来回运费</p>
                            <p>4. 退换货请保持商品及包装完好，附带上原包装、配件、吊牌等</p>
                        </div>
                    </div>
                </div>
                
                <!-- 用户评价 -->
                <div class="tab-pane fade" id="reviews" role="tabpanel" aria-labelledby="reviews-tab">
                    <div class="reviews-section">
                        <div class="reviews-header">
                            <h2 class="reviews-title">用户评价 (128)</h2>
                            
                            <div class="reviews-summary">
                                <div class="overall-rating">
                                    <div class="rating-value">4.7</div>
                                    <div class="rating-stars">
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star-half-alt"></i>
                                    </div>
                                    <div class="rating-count">基于 128 条评价</div>
                                </div>
                                
                                <div class="rating-distribution">
                                    <div class="rating-bar">
                                        <div class="rating-label">5星</div>
                                        <div class="progress-container">
                                            <div class="progress-bar" style="width: 75%;"></div>
                                        </div>
                                        <div class="rating-percentage">75%</div>
                                    </div>
                                    <div class="rating-bar">
                                        <div class="rating-label">4星</div>
                                        <div class="progress-container">
                                            <div class="progress-bar" style="width: 15%;"></div>
                                        </div>
                                        <div class="rating-percentage">15%</div>
                                    </div>
                                    <div class="rating-bar">
                                        <div class="rating-label">3星</div>
                                        <div class="progress-container">
                                            <div class="progress-bar" style="width: 7%;"></div>
                                        </div>
                                        <div class="rating-percentage">7%</div>
                                    </div>
                                    <div class="rating-bar">
                                        <div class="rating-label">2星</div>
                                        <div class="progress-container">
                                            <div class="progress-bar" style="width: 2%;"></div>
                                        </div>
                                        <div class="rating-percentage">2%</div>
                                    </div>
                                    <div class="rating-bar">
                                        <div class="rating-label">1星</div>
                                        <div class="progress-container">
                                            <div class="progress-bar" style="width: 1%;"></div>
                                        </div>
                                        <div class="rating-percentage">1%</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 评价表单 -->
                        <div class="review-form">
                            <h3 class="review-form-title">发表评价</h3>
                            
                            <div class="review-form-stars">
                                <span class="star" data-rating="1"><i class="fas fa-star"></i></span>
                                <span class="star" data-rating="2"><i class="fas fa-star"></i></span>
                                <span class="star" data-rating="3"><i class="fas fa-star"></i></span>
                                <span class="star" data-rating="4"><i class="fas fa-star"></i></span>
                                <span class="star" data-rating="5"><i class="fas fa-star"></i></span>
                            </div>
                            
                            <textarea class="review-textarea" placeholder="分享您对这款商品的使用体验..."></textarea>
                            
                            <div class="review-actions">
                                <button class="submit-review">发表评价</button>
                            </div>
                        </div>
                        
                        <!-- 评价列表 -->
                        <div class="reviews-list">
                            <!-- 评价1 -->
                            <div class="review-item">
                                <div class="review-header">
                                    <div class="reviewer-info">
                                        <img src="https://picsum.photos/100/100?random=40" alt="用户头像" class="reviewer-avatar">
                                        <div>
                                            <div class="reviewer-name">家居爱好者</div>
                                            <div class="review-date">2023-06-15</div>
                                        </div>
                                    </div>
                                    <div class="review-stars">
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                    </div>
                                </div>
                                
                                <div class="review-content">
                                    台灯质量非常好，款式简约大方，很符合我家的北欧风格装修。灯光柔和不刺眼，亮度调节也很方便，晚上睡前看书很舒服。性价比很高，值得购买！
                                </div>
                                
                                <div class="review-images">
                                    <img src="https://picsum.photos/600/400?random=50" alt="评价图片1" class="review-image">
                                    <img src="https://picsum.photos/600/400?random=51" alt="评价图片2" class="review-image">
                                </div>
                                
                                <div class="review-actions">
                                    <div class="review-action like-action">
                                        <i class="far fa-thumbs-up"></i>
                                        <span>有用 (24)</span>
                                    </div>
                                    <div class="review-action reply-action">
                                        <i class="far fa-comment"></i>
                                        <span>回复</span>
                                    </div>
                                </div>
                                
                                <!-- 回复区 -->
                                <div class="replies-section">
                                    <div class="reply-item">
                                        <div class="reply-header">
                                            <div class="reviewer-info">
                                                <img src="https://picsum.photos/100/100?random=20" alt="卖家头像" class="reviewer-avatar" style="width: 32px; height: 32px;">
                                                <div>
                                                    <div class="reviewer-name" style="font-weight: 600;">创意家居坊 <span style="color: var(--primary); font-size: 0.8rem;">卖家</span></div>
                                                    <div class="review-date">2023-06-16</div>
                                                </div>
                                            </div>
                                        </div>
                                        
                                        <div class="reply-content">
                                            感谢您的好评和喜爱！我们会继续努力提供更多优质的家居产品，祝您生活愉快！
                                        </div>
                                        
                                        <div class="reply-actions">
                                            <div class="review-action like-action">
                                                <i class="far fa-thumbs-up"></i>
                                                <span>有用 (5)</span>
                                            </div>
                                            <div class="review-action reply-action">
                                                <i class="far fa-comment"></i>
                                                <span>回复</span>
                                            </div>
                                        </div>
                                    </div>
                                    
                                    <!-- 回复表单 -->
                                    <div class="reply-form">
                                        <img src="https://picsum.photos/100/100?random=1" alt="你的头像" class="reply-avatar">
                                        <div class="reply-input-container">
                                            <input type="text" class="reply-input" placeholder="回复 @家居爱好者 ...">
                                            <div class="reply-form-actions">
                                                <button class="cancel-reply">取消</button>
                                                <button class="submit-reply">回复</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- 评价2 -->
                            <div class="review-item">
                                <div class="review-header">
                                    <div class="reviewer-info">
                                        <img src="https://picsum.photos/100/100?random=41" alt="用户头像" class="reviewer-avatar">
                                        <div>
                                            <div class="reviewer-name">简约生活</div>
                                            <div class="review-date">2023-06-10</div>
                                        </div>
                                    </div>
                                    <div class="review-stars">
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="far fa-star"></i>
                                    </div>
                                </div>
                                
                                <div class="review-content">
                                    东西不错，颜值很高，放在床头很合适。唯一的小缺点是调光触摸有时候不够灵敏，需要多按几次才能反应。总体来说还是很满意的。
                                </div>
                                
                                <div class="review-actions">
                                    <div class="review-action like-action">
                                        <i class="far fa-thumbs-up"></i>
                                        <span>有用 (12)</span>
                                    </div>
                                    <div class="review-action reply-action">
                                        <i class="far fa-comment"></i>
                                        <span>回复</span>
                                    </div>
                                </div>
                                
                                <!-- 回复区 -->
                                <div class="replies-section">
                                    <div class="reply-item">
                                        <div class="reply-header">
                                            <div class="reviewer-info">
                                                <img src="https://picsum.photos/100/100?random=20" alt="卖家头像" class="reviewer-avatar" style="width: 32px; height: 32px;">
                                                <div>
                                                    <div class="reviewer-name" style="font-weight: 600;">创意家居坊 <span style="color: var(--primary); font-size: 0.8rem;">卖家</span></div>
                                                    <div class="review-date">2023-06-11</div>
                                                </div>
                                            </div>
                                        </div>
                                        
                                        <div class="reply-content">
                                            感谢您的评价！关于触摸灵敏度的问题，建议您尝试用稍大一点的力度或面积触摸，如仍有问题，请联系我们的客服为您处理。
                                        </div>
                                        
                                        <div class="reply-actions">
                                            <div class="review-action like-action">
                                                <i class="far fa-thumbs-up"></i>
                                                <span>有用 (3)</span>
                                            </div>
                                            <div class="review-action reply-action">
                                                <i class="far fa-comment"></i>
                                                <span>回复</span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- 评价3 -->
                            <div class="review-item">
                                <div class="review-header">
                                    <div class="reviewer-info">
                                        <img src="https://picsum.photos/100/100?random=42" alt="用户头像" class="reviewer-avatar">
                                        <div>
                                            <div class="reviewer-name">小清新</div>
                                            <div class="review-date">2023-05-28</div>
                                        </div>
                                    </div>
                                    <div class="review-stars">
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star-half-alt"></i>
                                        <i class="far fa-star"></i>
                                    </div>
                                </div>
                                
                                <div class="review-content">
                                    粉色款真的很好看，很适合女生的房间。灯光有三档调节，最暗的一档很适合晚上起夜用，不会太亮影响睡眠。快递速度也很快，两天就收到了。
                                </div>
                                
                                <div class="review-images">
                                    <img src="https://picsum.photos/600/400?random=52" alt="评价图片" class="review-image">
                                </div>
                                
                                <div class="review-actions">
                                    <div class="review-action like-action">
                                        <i class="far fa-thumbs-up"></i>
                                        <span>有用 (8)</span>
                                    </div>
                                    <div class="review-action reply-action">
                                        <i class="far fa-comment"></i>
                                        <span>回复</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 分页 -->
                        <div class="pagination-container">
                            <div class="pagination">
                                <button class="page-btn disabled">
                                    <i class="fas fa-chevron-left"></i>
                                </button>
                                <button class="page-btn active">1</button>
                                <button class="page-btn">2</button>
                                <button class="page-btn">3</button>
                                <button class="page-btn">4</button>
                                <button class="page-btn">5</button>
                                <button class="page-btn">
                                    <i class="fas fa-chevron-right"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 相关推荐 -->
        <div class="related-products">
            <h2 class="section-title">相关推荐</h2>
            
            <div class="products-grid">
                <!-- 推荐商品1 -->
                <a href="#" class="product-card">
                    <div class="product-image-container">
                        <img src="https://picsum.photos/600/400?random=60" alt="北欧风格小夜灯" class="product-image">
                    </div>
                    
                    <div class="product-card-info">
                        <h3 class="product-card-title">北欧风格小夜灯 卧室床头灯创意温馨氛围灯</h3>
                        <div class="product-card-price">¥69.00</div>
                        <div class="product-card-rating">
                            <div class="product-card-rating-stars">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="far fa-star"></i>
                            </div>
                            <span class="product-card-rating-count">(86)</span>
                        </div>
                    </div>
                </a>
                
                <!-- 推荐商品2 -->
                <a href="#" class="product-card">
                    <div class="product-image-container">
                        <img src="https://picsum.photos/600/400?random=61" alt="现代简约壁灯" class="product-image">
                    </div>
                    
                    <div class="product-card-info">
                        <h3 class="product-card-title">现代简约壁灯 卧室床头壁灯创意个性走廊过道灯</h3>
                        <div class="product-card-price">¥159.00</div>
                        <div class="product-card-rating">
                            <div class="product-card-rating-stars">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star-half-alt"></i>
                            </div>
                            <span class="product-card-rating-count">(124)</span>
                        </div>
                    </div>
                </a>
                
                <!-- 推荐商品3 -->
                <a href="#" class="product-card">
                    <div class="product-image-container">
                        <img src="https://picsum.photos/600/400?random=62" alt="LED吸顶灯" class="product-image">
                    </div>
                    
                    <div class="product-card-info">
                        <h3 class="product-card-title">LED吸顶灯 客厅卧室灯现代简约大气家用灯具</h3>
                        <div class="product-card-price">¥299.00</div>
                        <div class="product-card-rating">
                            <div class="product-card-rating-stars">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                            </div>
                            <span class="product-card-rating-count">(215)</span>
                        </div>
                    </div>
                </a>
                
                <!-- 推荐商品4 -->
                <a href="#" class="product-card">
                    <div class="product-image-container">
                        <img src="https://picsum.photos/600/400?random=63" alt="北欧风格落地灯" class="product-image">
                    </div>
                    
                    <div class="product-card-info">
                        <h3 class="product-card-title">北欧风格落地灯 客厅书房卧室立式灯现代简约</h3>
                        <div class="product-card-price">¥249.00</div>
                        <div class="product-card-rating">
                            <div class="product-card-rating-stars">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="far fa-star"></i>
                            </div>
                            <span class="product-card-rating-count">(78)</span>
                        </div>
                    </div>
                </a>
                
                <!-- 推荐商品5 -->
                <a href="#" class="product-card">
                    <div class="product-image-container">
                        <img src="https://picsum.photos/600/400?random=64" alt="创意台灯" class="product-image">
                    </div>
                    
                    <div class="product-card-info">
                        <h3 class="product-card-title">创意台灯 学生学习护眼灯卧室床头灯可调光调色</h3>
                        <div class="product-card-price">¥189.00</div>
                        <div class="product-card-rating">
                            <div class="product-card-rating-stars">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star-half-alt"></i>
                                <i class="far fa-star"></i>
                            </div>
                            <span class="product-card-rating-count">(96)</span>
                        </div>
                    </div>
                </a>
                
                <!-- 推荐商品6 -->
                <a href="#" class="product-card">
                    <div class="product-image-container">
                        <img src="https://picsum.photos/600/400?random=65" alt="智能台灯" class="product-image">
                    </div>
                    
                    <div class="product-card-info">
                        <h3 class="product-card-title">智能台灯 可连接手机APP控制 调光调色定时功能</h3>
                        <div class="product-card-price">¥329.00</div>
                        <div class="product-card-rating">
                            <div class="product-card-rating-stars">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star-half-alt"></i>
                            </div>
                            <span class="product-card-rating-count">(156)</span>
                        </div>
                    </div>
                </a>
            </div>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 商品图片切换
            const thumbnails = document.querySelectorAll('.thumbnail-item');
            const mainImage = document.getElementById('mainImage');
            
            thumbnails.forEach(thumbnail => {
                thumbnail.addEventListener('click', function() {
                    // 移除所有缩略图的active类
                    thumbnails.forEach(t => t.classList.remove('active'));
                    // 给当前点击的缩略图添加active类
                    this.classList.add('active');
                    // 更新主图
                    mainImage.src = this.querySelector('.thumbnail-image').dataset.img;
                });
            });
            
            // 点赞功能
            const likeBtn = document.querySelector('.like-btn');
            likeBtn.addEventListener('click', function() {
                this.classList.toggle('liked');
                const icon = this.querySelector('i');
                
                if (this.classList.contains('liked')) {
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                } else {
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                }
            });
            
            // 收藏功能
            const saveBtn = document.querySelector('.save-btn');
            saveBtn.addEventListener('click', function() {
                this.classList.toggle('saved');
                const icon = this.querySelector('i');
                
                if (this.classList.contains('saved')) {
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                } else {
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                }
            });
            
            // 分享功能
            const shareBtn = document.querySelector('.share-btn');
            shareBtn.addEventListener('click', function() {
                alert('分享功能：可以分享到微信、微博、QQ等平台');
            });
            
            // 评价星星选择
            const ratingStars = document.querySelectorAll('.review-form-stars .star');
            ratingStars.forEach(star => {
                star.addEventListener('click', function() {
                    const rating = this.dataset.rating;
                    
                    // 更新星星显示
                    ratingStars.forEach(s => {
                        if (s.dataset.rating <= rating) {
                            s.classList.add('active');
                        } else {
                            s.classList.remove('active');
                        }
                    });
                });
            });
            
            // 评价点赞功能
            const likeActions = document.querySelectorAll('.like-action');
            likeActions.forEach(action => {
                action.addEventListener('click', function() {
                    this.classList.toggle('liked');
                    const icon = this.querySelector('i');
                    const countEl = this.querySelector('span');
                    let count = parseInt(countEl.textContent.match(/\d+/)[0]);
                    
                    if (this.classList.contains('liked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        countEl.textContent = `有用 (${count + 1})`;
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        countEl.textContent = `有用 (${count - 1})`;
                    }
                });
            });
            
            // 回复功能
            const replyActions = document.querySelectorAll('.reply-action');
            replyActions.forEach(action => {
                action.addEventListener('click', function() {
                    // 在实际应用中，这里可以显示回复输入框
                    const reviewerName = this.closest('.review-item, .reply-item').querySelector('.reviewer-name').textContent;
                    alert(`回复 @${reviewerName}`);
                });
            });
            
            // 取消回复
            const cancelReplyBtns = document.querySelectorAll('.cancel-reply');
            cancelReplyBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    this.closest('.reply-form').querySelector('.reply-input').value = '';
                });
            });
            
            // 提交回复
            const submitReplyBtns = document.querySelectorAll('.submit-reply');
            submitReplyBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    const replyInput = this.closest('.reply-form').querySelector('.reply-input');
                    const replyText = replyInput.value.trim();
                    
                    if (replyText) {
                        alert(`回复成功: ${replyText}`);
                        replyInput.value = '';
                    } else {
                        alert('请输入回复内容');
                    }
                });
            });
            
            // 提交评价
            const submitReviewBtn = document.querySelector('.submit-review');
            submitReviewBtn.addEventListener('click', function() {
                const reviewText = document.querySelector('.review-textarea').value.trim();
                const selectedStars = document.querySelectorAll('.review-form-stars .star.active').length;
                
                if (selectedStars === 0) {
                    alert('请给商品评分');
                    return;
                }
                
                if (!reviewText) {
                    alert('请输入评价内容');
                    return;
                }
                
                alert(`评价提交成功！您的评分：${selectedStars}星，评价内容：${reviewText}`);
                document.querySelector('.review-textarea').value = '';
                ratingStars.forEach(s => s.classList.remove('active'));
            });
            
            // 分页功能
            const pageButtons = document.querySelectorAll('.page-btn:not(.disabled)');
            pageButtons.forEach(button => {
                if (!button.querySelector('i')) { // 不是箭头按钮
                    button.addEventListener('click', function() {
                        pageButtons.forEach(btn => btn.classList.remove('active'));
                        this.classList.add('active');
                        // 实际应用中，这里可以添加加载对应页评价的逻辑
                    });
                }
            });
            
            // 搜索功能
            const searchInput = document.querySelector('.search-input');
            searchInput.addEventListener('keyup', function(e) {
                if (e.key === 'Enter') {
                    const searchTerm = this.value.trim();
                    if (searchTerm) {
                        alert(`搜索: ${searchTerm}`);
                        // 这里可以添加实际搜索逻辑
                    }
                }
            });
        });
    </script>
</body>
</html>
    
